package com.springproject.forum.dao;

import com.springproject.forum.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int insert(User row);

    int insertSelective(User row);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);

    User selectByUserName (@Param("username") String username);
    //带引号的是数据库传入的参数

    //后面的是java代码中使用的变量名
}